from pywinauto import Application
import uiautomation as automation
#while(True):
#    calcWindow = automation.WindowControl(searchDepth=2, ClassName='Afx:0000000140000000:8:0000000000010003:0000000000000000:0000000000000000')
 #   if calcWindow.Exists(0, 0):
 #       break

pane = automation.WindowControl(searchDepth=3,AutomationId="65280")
print(pane)